package com.example.novelstory.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@ApiModel(value = "小说表")
public class Novel {
        @ApiModelProperty("角色id")
        @TableId(type = IdType.AUTO)
        private int novel_id;
        @ApiModelProperty("所属分类")
        private String category;//text
        @ApiModelProperty("名称")
        private String title;//char
        @ApiModelProperty("作者")
        private String author_name;//char
        @ApiModelProperty("图片")
        private byte pic;//tinyint
        @ApiModelProperty("说明")
        private String content;
        @ApiModelProperty("标签")
        private String tag;
        @ApiModelProperty("顶")
        private Integer up;//mediumint
        @ApiModelProperty("踩")
        private Integer down;//mediumint
        @ApiModelProperty("浏览数量")
        private int hits;
        @ApiModelProperty("评分")
        private String rating;//char
        @ApiModelProperty("评分人数")
        private int rating_count;
        @ApiModelProperty("连载")
        private byte serialize;//tinyint
        @ApiModelProperty("收藏")
        private int favorites;
        @ApiModelProperty("推荐位")
        private byte position;//tinyint
        @ApiModelProperty("模板")
        private String template;
        @ApiModelProperty("外链地址")
        private String link;
        @JsonFormat(pattern="yyyy-MM-dd hh:mm:ss")
        @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
        @ApiModelProperty("创建时间")
        private Date create_time;
        @JsonFormat(pattern="yyyy-MM-dd hh:mm:ss")
        @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
        @ApiModelProperty("更新时间")
        private Date update_time;
        @ApiModelProperty("来源")
        private String reurl;//char
        @ApiModelProperty("状态")
        private byte status;//tinyint
        @ApiModelProperty("日浏览")
        private int hits_day;
        @ApiModelProperty("周浏览")
        private int hits_week;
        @ApiModelProperty("月浏览")
        private int hits_month;
        @JsonFormat(pattern="yyyy-MM-dd hh:mm:ss")
        @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
        @ApiModelProperty("浏览时间")
        private Date hits_time;
        @ApiModelProperty("字数")
        private int word;
        @ApiModelProperty("推荐票")
        private int recommend;

}
